export default [
  {
    path: '/user',
    layout: false,
    routes: [
      {
        path: '/user',
        routes: [
          {
            name: 'login',
            path: '/user/login',
            component: './user/Login',
          },
        ],
      },
    ],
  },
  {
    path: '/welcome',
    name: 'welcome',
    icon: 'HomeOutlined',
    component: './Welcome',
    access: 'canUser'
  },
  // {
  //   name: 'analysis',
  //   icon: 'area-chart',
  //   path: '/analysis',
  //   component: './Analysis',
  // },
  {
    path: '/',
    redirect: '/welcome',
    access: 'canUser'
  },
  {
    name: 'usercenter',
    icon: 'user',
    hideInMenu: true,
    path: '/userCenter',
    component: './UserCenter',
    access: 'canUser'
  },
  {
    name: 'userset',
    icon: 'user-add',
    hideInMenu: true,
    path: '/userset',
    component: './UserSet',
    access: 'canUser'
  },
  {
    name: 'monitor',
    icon: 'video-camera',
    path: '/monitor',
    component: './Monitor',
    access: 'canUser'
  },
  {
    name: 'workspace',
    icon: 'read',
    path: '/workspace',
    component: './WorkSpace',
    access: 'canUser'
  },
  {
    name: 'editorflow',
    icon: 'highlight',
    path: '/editorflow',
    component: './EditorFlow',
    access: 'canUser'
  },
  {
    name: 'editorkoni',
    icon: 'snippets',
    path: '/editorkoni',
    component: './EditorKoni',
    access: 'canUser'
  },
  {
    name: 'editormind',
    icon: 'alert',
    path: '/editormind',
    component: './EditorMind',
    access: 'canUser'
  },
  {
    name: 'formPlus',
    icon: 'ContainerOutlined',
    path: '/formPlus',
    component: './FormAdvancedForm',
    access: 'canUser'
  },
  {
    name: 'Info',
    icon: 'FileDoneOutlined',
    path: '/info',
    component: './Info',
    access: 'canUser'
  },
  {
    name: 'skill',
    icon: 'SkypeOutlined',
    path: '/skill',
    component: './Skill',
    access: 'canUser'
  },
  {
    name: 'map',
    icon: 'MediumOutlined',
    path: '/map',
    component: './Map',
    access: 'canUser'
  },
  {
    name: 'userList',
    icon: 'UsergroupAddOutlined',
    path: '/userList',
    component: './UserList',
    access: 'canAdmin'
  },
  {
    name: 'rolesList',
    icon: 'EyeOutlined',
    path: '/rolesList',
    component: './RolesList',
    access: 'canAdmin'
  },
  {
    name: 'permissionsList',
    icon: 'BranchesOutlined',
    path: '/permissionsList',
    component: './PermissionsList',
    access: 'canAdmin'
  },
  {
    name: 'visitorList',
    icon: 'WifiOutlined',
    path: '/visitorList',
    component: './VisitorList',
    access: 'canAdmin'
  },
  {
    name: 'sysLogs',
    icon: 'FileTextOutlined',
    path: '/sysLogs',
    component: './SysLogs',
    access: 'canAdmin'
  },
  {
    name: 'routeList',
    icon: 'FileTextOutlined',
    path: '/routeList',
    component: './RouteList',
    access: 'canAdmin'
  },
  {
    name: 'blogSpace',
    icon: 'FileTextOutlined',
    path: '/blogSpace',
    component: './BlogSpace',
    access: 'canUser'
  },
  {
    name: 'blogInfo',
    icon: 'FileTextOutlined',
    path: '/blogInfo',
    component: './BlogInfo',
    access: 'canUser'
  },
  {
    name: 'blogEdit',
    icon: 'FileTextOutlined',
    path: '/blogEdit',
    component: './BlogEdit',
    access: 'canUser'
  },
  {
    name: 'blogExamine',
    icon: 'FileTextOutlined',
    path: '/blogExamine',
    component: './BlogExamine',
    access: 'canAdmin'
  },
  {
    name: 'userInfo',
    icon: 'FileTextOutlined',
    path: '/userInfo',
    component: './UserInfo',
    access: 'canUser'
  },
  {
    name: 'privateChat',
    icon: 'FileTextOutlined',
    path: '/privateChat',
    component: './PrivateChat',
    access: 'canUser'
  },
  {
    name: 'UserChat',
    icon: 'FileTextOutlined',
    path: '/userChat',
    component: './UserChat',
    access: 'canUser'
  },
  {
    name: 'backFiles',
    icon: 'FileTextOutlined',
    path: '/backFiles',
    component: './BackFiles',
    access: 'canAdmin'
  },
  {
    name: 'dictionary',
    icon: 'FileTextOutlined',
    path: '/dictionary',
    component: './Dictionary',
    access: 'canAdmin'
  },
  {
    component: './404',
  }
];
